package com.github.zdg.recyclerview.itemdecoration;

import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by zoudong on 2017/5/29.
 */

public interface IDivierDecoration {

    int HORIZONTAL = 0;
    int VERTICAL = 1;

    boolean isFirstColumn(int orientation, int position , int spanCount, int childCount);

    boolean isLastColumn(int orientation, int position, int spanCount,int childCount);

    boolean isFirstRow(int orientation, int position, int spanCount,int childCount);

    boolean isLastRow(int orientation, int position,int spanCount, int childCount);

    void drawHorizontal(Canvas canvas, RecyclerView parent);

    void drawVertical(Canvas canvas, RecyclerView parent);

    void offsetsVertical(int orientation, Rect outRect, View view, RecyclerView parent);

    void offsetsHorizontal(int orientation, Rect outRect, View view, RecyclerView parent);

    RecyclerView.LayoutManager getLayoutManager();
}
